<?php

class Article_article_category_to {

	private $article_number;
	private $article_category_number;
	
	public function __construct($article_number, $article_category_number) {
	
		$this->article_number = $article_number;
		$this->article_category_number = $article_category_number;
	}
	
	public function get_article_number() {
		return $this->article_number;
	}
	
	public function get_article_category_number() {
		return $this->article_category_number;
	}
	
	public function equals($object) {
		if ((get_class($this) != get_class($object)) ||
				($object == null))
			return false;
		else {
			if (($this->article_number == $object->get_article_number()) &&
				($this->article_category_number == $object->get_article_category_number()))
				return true;
			return false;
		}
	}

	public function to_string() {
		return 'article_number: ' . $this->article_number . ' | ' .
				'article_category_number: ' . $this->article_category_number;
	}
}
?>